{template 'header', $TP}
<div class="nav">
<a href="index.php">首页</a> >
<a href="index.php?moduleid={$moduleid}">{$MOD[name]}</a> >
{if $catid}{wap_pos($CAT)}{/if}
</div>
<div class="main">
{if $itemid}
	{if $action == 'list'}
		<a href="index.php?moduleid={$moduleid}&amp;itemid={$itemid}">[{$title}]答案列表</a><br/>
		{if $could_answer}<a href="index.php?moduleid={$moduleid}&amp;itemid={$itemid}&amp;action=answer">[我来回答]</a><br/><br/>{/if}
		{loop $lists $v}
		{nl2br($v[content])}<br/>
		<small>{timetodate($v[addtime], 5)}</small><br/>
		回答:{if $v[hidden]}匿名{else}{if $v[username]}<a href="index.php?moduleid=4&amp;username={$v[username]}">{$v[username]}</a>{else}{hide_ip($v[ip])}{/if}{/if}<br/><br/>
		{/loop}
		{if $pages}<br/>{$pages}<br/>{/if}
	{elseif $action == 'answer'}
	<a href="index.php?moduleid={$moduleid}&amp;itemid={$itemid}">回答[{$title}]</a><br/>
	<form action="index.php" method="post">
	<input type="hidden" name="moduleid" value="{$moduleid}"/>
	<input type="hidden" name="action" value="{$action}"/>
	<input type="hidden" name="itemid" value="{$itemid}"/>
	<input type="hidden" name="forward" value="{$forward}"/>
	答案:<br/>
	<input type="text" name="content" size="20"/><br/>
	<input type="submit" name="submit" value="提交"/>
	</form>
	{else}
	<strong>{$title}</strong><br/>
	日期:<small>{$editdate}</small><br/>
	状态:{$PROCESS[$process]}<br/>
	提问:{if $hidden}匿名{else}<a href="index.php?moduleid=4&amp;username={$username}">{$username}</a>{/if}<br/>
	{$content}<br/>
	<strong>最佳答案{if $expert}<span style="color:red;">[专家]</span>{/if}</strong>:<br/>
	{if $user_status == 3}
		{if $best}
		{nl2br($best[content])}<br/>
		回答：{if $best[hidden]}匿名{else}{if $best[username]}<a href="index.php?moduleid=4&amp;username={$best[username]}">{$best[username]}</a>{else}{hide_ip($best[ip])}{/if}{/if}<br/>
		<small>{timetodate($best[addtime], 5)}</small><br/>
		{else}
		暂无最佳答案<br/>
		{/if}
	{else}
	{template 'content', $TP}
	{/if}
	<a href="index.php?moduleid={$moduleid}&amp;itemid={$itemid}&amp;action=list">[全部回答({$answer})]</a>
	{if $could_answer}<a href="index.php?moduleid={$moduleid}&amp;itemid={$itemid}&amp;action=answer">[我来回答]</a>{/if}
	{/if}
{else}
	<div class="brby"><img src="{AJ_SKIN}image/arrow.gif" align="absmiddle"/> <a href="index.php?moduleid={$moduleid}&amp;action=category">按分类浏览</a></div>
	{loop $lists $v}
	&middot;[{$PROCESS[$v[process]]}] <a href="index.php?moduleid={$moduleid}&amp;itemid={$v[itemid]}">{$v[title]}</a>
	<br/>
	{/loop}
{/if}
{if $pages}<div class="pages">{$pages}</div>{/if}
<div class="fm">
<form action="index.php" method="get">
<input type="hidden" name="moduleid" value="{$moduleid}"/>
<input type="hidden" name="catid" value="{$catid}"/>
<input type="hidden" name="areaid" value="{$areaid}"/>
<select name="moduleid" class="fm_opt">
{loop $WAP_MODULE $i $m}
<option value="{$m[moduleid]}"{if $m[moduleid]==$moduleid} selected{/if}>{$m[name]}</option>
{/loop}
</select>
<input type="text" name="kw" value="{$kw}" size="10" class="fm_inp"/>
<input type="submit" value="搜索" class="fm_sbm"/>
</form>
</div>
{template 'footer', $TP}